package com.cy;

import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import java.net.URL;

public class Client {
    public static void main(String[] args) throws Exception {
        URL wsdlUrl = new URL("http://localhost:8080/JWSofDengJL?wsdl");
        QName serviceName = new QName("http://cy.com/", "ServiceImplService");

        Service service = Service.create(wsdlUrl, serviceName);
        IService port = service.getPort(IService.class);

        String result = port.JWSHelloDengJL("3221003139");
        System.out.println("客户端收到响应:\n" + result);
    }
}